package com.sl.biz.modular.restapi.service;


import com.sl.biz.modular.restapi.controller.request.ApiConfigQueryByIdRequest;
import com.sl.biz.modular.restapi.controller.request.ApiConfigQueryByIdsRequest;
import com.sl.biz.modular.restapi.controller.request.ApiConfigUpdateByIdRequest;
import com.sl.biz.modular.restapi.controller.response.ApiConfigQueryByIdVO;
import com.sl.biz.modular.restapi.controller.response.ApiVersionConfigQueryByApiIdVO;
import com.sl.biz.modular.restapi.dao.entity.ApiConfigDO;
import com.sl.biz.modular.restapi.dao.entity.ApiVersionConfigDO;

import java.util.List;

public interface ApiConfigBizService {
    String save(ApiConfigDO apiConfigDO);

    List<ApiConfigDO> list(ApiConfigDO apiConfigDO);

    Boolean updateById(ApiConfigUpdateByIdRequest apiConfigUpdateByIdRequest);

    ApiConfigQueryByIdVO queryById(ApiConfigQueryByIdRequest apiConfigUpdateByIdRequest);

    List<ApiVersionConfigQueryByApiIdVO> queryVersionByApiId(ApiConfigQueryByIdRequest apiConfigUpdateByIdRequest);

    List<ApiVersionConfigQueryByApiIdVO> queryVersionByApiIds(ApiConfigQueryByIdsRequest apiConfigUpdateByIdRequest);

    Boolean setApiStatusCode(ApiConfigDO apiConfigDO);

    Boolean versionSetLatestFlag(ApiVersionConfigDO apiVersionConfigDO);

    Boolean removeById(ApiConfigDO apiConfigDO);

}
